package com.itheima;

import javax.swing.text.Style;

public class StudntDemo2 {
    private String  name;
    private int old;
    private String sex;

    public StudntDemo2() {
    }

    public StudntDemo2(String name, int old, String sex) {
        this.name = name;
        this.old = old;
        this.sex = sex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getOld() {
        return old;
    }

    public void setOld(int old) {
        this.old = old;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
}
